<!--
 * @Descripttion: 
 * @version: 
 * @Author: huangyong
 * @Date: 2019-11-22 15:30:42
 * @LastEditors: 
 * @LastEditTime: 2019-11-22 17:17:10
 -->
<template>
  <div id="app" class="full">
    <transition name="slide-left">
      <router-view />
    </transition>
  </div>
</template>
<style>
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;  min-height: 100%;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.full{
  min-height: 100%; position: fixed;
}
.slide-right-enter-active,
.slide-right-leave-active,
.slide-left-enter-active,
.slide-left-leave-active {
  will-change: transform;
  transition: all 500ms;
  position: absolute; 
}
.slide-right-enter {
  opacity: 0;
  transform: translate(-100%, 0);
}
.slide-right-leave-active {
  opacity: 0;
  transform: translate(100%, 0);
}
.slide-left-enter {
  opacity: 0;
  transform: translate(100%, 0);
}
.slide-left-leave-active {
  opacity: 0;
  transform: translate(-100%, 0);
}
</style>
